<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消费记录系统</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-image: url('https://pic1.zhimg.com/v2-f8b6c9f677c8d8c8d8a8a8a8c8a8c8a8.jpg');
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            margin: 0;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }
      .title {
            text-align: center;
            font-size: 28px;
            margin-bottom: 20px;
            color: black;
        }

        form {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        input[type="text"],
        select {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

        input[type="checkbox"] {
            margin-right: 10px;
        }

        button {
            background-color: #007BFF;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
        }
        
    </style>
</head>

<body>
    <!-- <div class="title">消费记录系统</div> -->
    <form action="http://127.0.0.1:8080/cash/add" method="post">
        <!-- 文本 -->
        <label for="username">消费名称：</label>
        <input type="text" id="username" name="username" required>
        <label for="money">消费金额：</label>
        <input type="text" id="money" name="money" required>
        <!-- 单选框 -->
        <label for="hobbies">类型：</label>
        <div>
            <input type="radio" id="reading" name="hobbies" value="reading">
            <label for="reading">收入</label>
        </div>
        <div>
            <input type="radio" id="sports" name="hobbies" value="sports">
            <label for="sports">支出</label>
        </div>
        <!-- 下拉选择框 -->
        <label for="city">消费类型：</label>
        <select id="city" name="city">
            <option value="beijing">吃饭</option>
            <option value="shanghai">购物</option>
            <option value="guangzhou">工资</option>
        </select>
        <button type="submit">提交</button>
    </form>
</body>

</html>